let array = [];
let n = 7;
let begin = 0;
let end = 33;
let bound = end - begin;
while (array.length < n) {
    let rand = Math.random();
    let f = rand * bound + 1
    let int = f | 0;
    if (!array.includes(int)) {
        array.push(int);
    }
}
array.sort((a, b) => a - b);
console.log(array.toString());